package org.bizming.record.service;

import java.util.List;

import org.bizming.base.BaseException;
import org.bizming.record.model.Record;

public interface RecordService {

	/**
	 * 添加记录
	 * 
	 * @param record
	 * @return
	 */
	public boolean add(Record record) throws BaseException;

	/**
	 * 修改记录
	 * 
	 * @param record
	 * @return
	 */
	public boolean update(Record record) throws BaseException;

	/**
	 * 根据主键获取对象
	 * 
	 * @param id
	 * @return
	 */
	public Record get(int id);

	/**
	 * 查看个人记录信息
	 * 
	 * @param username
	 * @return
	 * @throws BaseException
	 */
	public List<Record> selectList(int page, int pages);

	/**
	 * 查看个人总记录数
	 * 
	 * @param username
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	public int count();
}
